import request from '@/utils/request'

// 查询我的申请列表
export function listMyApply(query) {
    return request({
        url: '/applyproduct/mylist',
        method: 'get',
        params: query
    })
}

// 查询我的申请列表
export function priceById(query) {
    return request({
        url: '/applyproduct/pricebyid',
        method: 'post',
        data: query
    })
}

// 查询字典类型列表
export function listallApply(query) {
    return request({
        url: '/applyproduct/list',
        method: 'get',
        params: query
    })
}

//查询
export const stockNoListall = (params) => {
    return request.get('/stock/listnobatchall', {params: params})
}


// 新增字典类型
export function addApply(data) {
    return request({
        url: '/applyproduct/add',
        method: 'post',
        data: data
    })
}

// 修改字典类型
export function updateApply(data) {
    return request({
        url: '/applyproduct/update',
        method: 'post',
        data: data
    })
}

// 删除字典类型
export function delApply(dictId) {
    return request({
        url: '/applyproduct/del/' + dictId,
        method: 'delete'
    })
}


